package se.kth.ict.id2203.assignment3a;

import se.sics.kompics.launch.Scenario;
import se.sics.kompics.launch.Topology;

@SuppressWarnings("serial")
public final class Assignment3aExecutor {

	public static final void main(String[] args) {

		/*
		 * specify the topology and the characteristics of the network
		 * connecting the processes
		 */
		Topology topology1 = new Topology() {
			{
				node(1, "127.0.0.1", 22031);
				node(2, "127.0.0.1", 22032);
				node(3, "127.0.0.1", 22033);
				//node(4, "127.0.0.1", 22034);

				defaultLinks(1000, 0);
			}
		};


		Scenario scenario1 = new Scenario(Assignment3aMain.class) {
			{
				command(1, "S30000");
				command(2, "S500:W7,4:S25000");
				command(3, "S10000");
				//command(4, "S200");
			}
		};

		/*
		 * the launcher will check automatically that topology1 is fully connected
		 */
		scenario1.executeOnFullyConnected(topology1);
		
		System.exit(0);

	}
}
